package top.aicats.pattern.decoratorAndObserver.decorator;

public class DecoratorTest {
    public static void main(String[] args) {
        Charges charges = new BaseCharges();
        charges = new BaseChargesDecorator(charges);
        charges = new LiuliangChargesDecorator(charges);
        charges = new YuyinChargesDecorator(charges);
        charges = new YuyinChargesDecorator(charges);
        System.out.println(charges.getMsg());
    }
}
